/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 新增调度任务 POST /schedule/addSchedule */
export async function scheduleAddScheduleUsingPost({
  body,
  options,
}: {
  body: API.SysScheduleBo92d0833887794e6e94677167509733ab;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/schedule/addSchedule', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 开启调度任务 POST /schedule/openSchedule */
export async function scheduleOpenScheduleUsingPost({
  body,
  options,
}: {
  body: API.SysScheduleBo07d00be898d24da1A7365087fbd951a1;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/schedule/openSchedule', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 暂停调度任务 POST /schedule/stopSchedule */
export async function scheduleStopScheduleUsingPost({
  body,
  options,
}: {
  body: API.SysScheduleBo4c54279fDde140c0989bF4ce236e8540;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/schedule/stopSchedule', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
